package com.huadao.cart_ccs.netty;

public interface  NettyListener {
    byte STATUS_CONNECT_SUCCESS = 1;

    byte STATUS_CONNECT_CLOSED = 0;

    byte STATUS_CONNECT_ERROR = 0;


    /**
     * 对消息的处理
     */
//    void onMessageResponse(ByteBuf byteBuf);

    void onMessageResponse(Object object);

    /**
     * 当服务状态发生变化时触发
     */
    void onServrStatusConnectChanged(int statusCode);
}
